import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './routes'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '',
      component: () => import('@/layout/index.vue'),
      children: [
        ...routes
      ]
    }
  ]
})

export default router
